package com.pet_service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pet_service.entity.Permission;
import com.pet_service.result.Result;

import java.util.List;

/**
* @author 邹全伸
* @description 针对表【permission(权限表)】的数据库操作Service
* @createDate 2025-09-20 09:18:18
*/
public interface PermissionService extends IService<Permission> {
    List<Permission> buildTreePermission(List<Permission> permissionList);

    List<Permission> getPermissionsByRoleId(Integer roleId);

    Result removePermissionByPid(Integer id);
}
